package day1110.demo02;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/10 15:52
 */

public class MianJi extends Templete{
    private double t=3.14;
    @Override
    public double area(Integer r) {
        return t*r*r;
    }

    @Override
    public double perimeter(Integer r) {
        return 2*t*r;
    }
}
